Skip to main content

Setting up integration to store data into Pega using realtime REST JSON

8 Tasks

1 hr

Pega Customer Decision Hub 8.7
Visible to: All users
Beginner Pega Customer Decision Hub 8.7 Data Integration English

Scenario

MyOrg has decided to partner with Pega to better support their ability to sell their software by introducing a new integration component that will allow for the consumption of real-time data from MyOrg into Pega applications. The goal is that this data can then be used for predictive and adaptive analytical models that drive personalized decisions, as well as for defining eligibility criteria. The data that MyOrg sends is real-time data that does not map to existing properties in the Pega xCAR (extended customer analytical record).

Note: The goal of this exercise is to demonstrate the required artifacts that need to be built on the Pega side to support a real-time data integration service. In a real-life scenario, the rules and configurations depend on the project requirements. For this exercise, an implementation application of Customer Decision Hub has been built for you, in which you can do the development.

As a system architect, you build the artifacts required for the integration between MyOrg, an independent software vendor, and the Pega application.

After the creation of the artifacts, as a system architect, test that the data can be ingested and used within the Pega application. Then, package the developed artifacts as a component so that they can be shared and deployed through Pega Marketplace.

Use the following credentials to log in to the development system:

Role User name Password
System architect SystemArchitect rules
Database administrator [email protected] enablement
Caution: The development system hibernates after 2 hours of inactivity and terminates after 7 days of inactivity.

Your assignment consists of the following tasks:

Task 1: Define a ruleset

As a system architect, create a new ruleset for saving integration artifacts and include the ruleset in the application definition. For this exercise, the name of the organization is MyOrg, and the ruleset is MyOrgInt.

Task 2: Create a new database table

As a database administrator, create the table required to save your data. Then, as a system architect, create a database table rule to connect to the database table from the Pega side. For the purposes of this exercise, the database table is named sample and has the following structure:

Table Column Type Primary Key?

sample

customerid

character varying(255)

True

sample

sampledecimal

numeric(3,2)

False

sample

sampleinteger

integer

False

Task 3: Define the data class

As a system architect, define a data class and the properties that will be saved into the Pega application to support the Pega xCAR. For the purposes of this exercise, the data class is MyOrg-Data-Sample.

For this exercise, create two properties.

Field Name Field ID Type

Sample Decimal

sampledecimal

Decimal

Sample Integer

sampleinteger

Integer

Tip: The customerid property exists in the inheritance path. In this case, there is no need to create a new property for customerid in the data class.

Task 4: Define the integration class

As a system architect, define the integration class and the properties required to support your service. For the purposes of this exercise, the integration class is MyOrg-Int-Sample.

Task 5: Create the service

As a system architect, create a service package rule to group service rules that are designed to be developed, tested, and deployed together. For the purposes of this exercise, the service package is Sample, the Service REST rule is SampleService and the service activity is SampleServiceActivity.

Tip: The service package determines the security scheme and access for the services in the package. When you create a service package, you define a package name. Create the service package data instance before creating any service rules with that package name.

Task 6: Mark properties relevant for decisioning

As a system architect, mark your properties as relevant and define categories for them so that they can be used for decisioning.

Task 7: Test the service

As a system architect, test the service.

Tip: Use a 3rd party API testing tool, such as Postman, to test the service.

Task 8: Package the artifacts

As a system architect, package the created artifacts as a new component to support feature reuse in another system or applications, and publish the package on the Pega Marketplace. For the purposes of this exercise, the component name is SampleComponent.

Tip: You can control which rulesets define your component and whether your component has dependencies on other rulesets or applications.

 

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Detailed Tasks

1 Define a ruleset

  1. On the exercise system landing page, click Pega CRM suite to log in to Customer Decision Hub.
  2. Log in to Dev Studio as the system architect with User name SystemArchitect and Password rules.
  3. In the header of Dev Studio, click Application: Customer Decision Hub > Definition to open the application definition.
    Opening the Application Definition in Dev Studio
  4. On the Edit Application: Customer Decision Hub rule form, in the Application rulesets section, click + Add ruleset.
  5. Click and hold the empty row then drag it from the bottom to the top of the ruleset stack.
    Adding a new ruleset to the ruleset stack
  6. Enter the name of the ruleset as MyOrgInt:01-01, then click the target icon to create a new ruleset version.
    Creating the MyOrgInt ruleset
    Tip: As best practice, use the name of your organization or the name of the tool within your organization that you are integrating with the Pega side, followed by the letters Int (short for integration). Follow the name of the ruleset with :01-01 which indicates the version of the ruleset.
  1. In the upper-right corner, click Create and open.
    Create and open new MyOrgInt ruleset
  2. On the Edit Ruleset: MyOrgInt tab, click Save.
  3. Close the Edit Ruleset: MyOrgInt tab and on the Edit Application: Customer Decision Hub tab, click Save to save your application definition rule with the newly defined ruleset.
    Saving the application rule

2 Create a new database table

  1. On the exercise system landing page, click CloudBeaver to log in to the CloudBeaver web application.
    Launching Cloud Beaver from the landing page
  2. In the navigation pane of CloudBeaver, click Pega, and then, in the header of CloudBeaver click SQL to open a new tab.
    Running a SQL statement
  3. Define a new table in the database to store the integration data. The table must be created in the ExternalMKTData schema of Customer Decision Hub. For the purposes of this exercise, use the following SQL script:

    -- Table: externalmktdata.sample
    -- DROP TABLE externalmktdata.sample;
    CREATE TABLE externalmktdata.sample
    (
    customerid character varying(255) COLLATE pg_catalog."default" NOT NULL,
    sampleinteger integer,
    sampledecimal numeric(3,2),
    CONSTRAINT sampletable_pkey PRIMARY KEY (customerid)
    )
    WITH (
    OIDS = FALSE
    )
    TABLESPACE pg_default;
    ALTER TABLE externalmktdata.sample
    OWNER to pega;
  1. Press CTRL + ENTER on your keyboard to run the query and see the results.
  2. Log in to Dev Studio as the system architect with User name SystemArchitect and Password rules.
  3. Create a Database Admin Table instance rule to map your class to the table that you created in Task 2, step 3.
    1. In the header of Dev Studio, click Create > SysAdmin > Database Table.
    2. In the Database Table short description, enter MyOrg-Data-Sample as a description for the table.
    3. In the Class Name, enter MyOrg-Data-Sample as the name of the data class.
      Tip: The Class name should be named with the following convention: OrgName-Data-TypeOfData
    4. Click Create and Open.
    5. In the Database field, enter ExternalMKTData.
    6. In the Table name field, enter sample as the name of the table that was created for you.
    7. On the header of the rule form, click [Edit] to update the Associated RuleSet to the MyOrgInt rule set that you created in Task 1, step 6, and then click OK.
      Creating a new Database table
    8. In the upper-right corner, click Save.
      Caution: Do not click the Test Connectivity button until you create the data class. This helps to automatically configure the class and database table mapping.

3 Define the data class

  1. In the header of Dev Studio, click Create > SysAdmin > Class to create a new class.
    1. In the Class Record Configuration section, in the Label field, enter MyOrg Data as a short description for your class.
    2. In the Class Name field, enter MyOrg-Data-Sample as the unique name for your class.
      Tip: Use the following convention: OrgName-Data-TypeOfData
    3. In the Context section, select the Customer Decision Hub radio button.
    4. In the Add to ruleset list, select the MyOrgInt ruleset that you created in Task 1, step 6.
    5. In the upper-right corner, click Create and open.
      Creating a new data class
  1. On the General tab of the class form, select the class type, and then define the class settings for the new class:
    1. In the Select class type list, select Concrete.
    2. In the Settings section, in the Created in version field, enter 01-01-01.
    3. In the Settings section, in the This class list, select does not belong to a class group.
    4. In the Keys section, in the Name field enter .CustomerID
    5. In the Caption field, enter CustomerID.
    6. In the Class inheritance section, in the Parent Class (Directed) field, enter PegaMKT-Data-.
      Updating the database config for Data class
    7. On the History tab, in the Description field enter Sample class, and in the Usage field, enter Sample usage.
      Providing a description and usage
    8. In the upper-right corner, click Save.
  2. In the header of Dev Studio, click the tab for the Database Table rule that you created in Task 2, step 6.
    1. In the upper-right corner, click Save.
    2. In the Database section, click Test connectivity.
      Testing connectivity of the database table
    3. Confirm that the data class is mapped to the correct database table.
      Confirmation screen
      Caution: Issues with the connection are resolved when the properties are created.
  1. In the header of Dev Studio, switch between the open tabs to the data class that you created in Task 3.
  2. At the top of the Edit class rule form, click the down arrow and then select View in data designer to define the data model that reflects the data that you want to store in the Pega application.
    Launching data designer
  3. In the upper-right corner, click Add field to define a new property.
    Adding new fields to data model
    1. In the Field name field enter the name of the property as Sample integer.
      Tip: As best practice, use sentence case when naming fields: capitalize the first letter of the first word, and then lowercase for the rest of the words. For example, Sample integer.
    2. In the Type list, select Integer as the type of field.
    3. Optional: To add additional fields, click Submit & add another.
      Adding sampleinteger to the data model
      Caution: You do not need to create the CustomerID, as this property already exists in the data model.
    4. Optional: To create additional fields, repeat steps 6a to 6b.
      For this exercise, add another field with Field name Sample decimal and Type Decimal.
    5. Click Submit.
    6. On the Data Type: MyOrg Data page, click Save.
      Saving the new data model
  1. Create a new data set rule to connect to the database table:
    1. In the header of Dev Studio, click Create > Data model > Data set.
    2. On the Create Data Set form, in the Label field, enter Sample as the name for the data set.
    3. In the Type list, select Database table.
    4. In the Context section, in the Apply to field, enter or select MyOrg-Data-Sample as the data class.
    5. In the Context section, in the Add to ruleset list, select MyOrgInt as the ruleset.
    6. Click Create and open.
      Defining a new data set
    7. In the upper-right corner, click Save.
      Saving a new data set
      Tip: This data set can be used to query the records stored in the database table. Currently, there are no records in the database table.

4 Define the integration class

  1. In the header of Dev Studio, click Create > SysAdmin > Class to create a new integration class.
    1. In the Class Record Configuration section, in the Label field, enter MyOrg Integration as a short description.
    2. In the Class Name field, enter MyOrg-Int-Sample as a unique name for your integration class.
      Tip: Use the following naming convention for integration class names: OrgName-Int-TypeOfData
    3. In the Context section, select the Customer Decision Hub radio button.
    4. In the Add to ruleset list, select the MyOrgInt ruleset that you created in Task 1, step 6.
    5. Click Create and open.
      Creating a new integration class
  1. On the General tab of the class form, select a class type, and then define the class settings for the new class:
    1. In the Select class type list, select Abstract.
    2. In the Settings section, in the Created in version field, enter 01-01-01.
    3. In the Class inheritance section, in the Parent Class (Directed) field, enter Int-PegaCDH.
      Configuring new integration class
    4. On the History tab, in the Description field enter Sample class, and in the Usage field, enter Sample usage.
    5. In the upper-right corner, click Save.
  2. At the top of the Edit class rule form, click the down arrow and then select View in data designer to define the data model that reflects the data you want to store on the Pega side.
    Launching data designer for the integration class
    Caution: As a best practice, the fields should map letter-for-letter to the attributes that are passed in through the service call to the Pega application as part of the integration.
  1. In the upper-right corner, click Add field to define properties according to the data model.
    1. Add the following fields:
      Field Name Field Type

      Customer ID

      Text

      Sample integer

      Integer

      Sample decimal

      Decimal

    2. Click Submit.
      All integration fields added to the INT class
    3. On the Data Type: MyOrg Integration page, click Save.
  1. Create a page property in the integration class that maps to the data class that you created in Task 3, step 2.
    1. In the header of Dev Studio, click Create > Data Model > Property.
    2. In the Label field, enter the name of the page property as SamplePage.
      Tip: As a best practice, the name of a property should start with the type of data that the property represents and end with the word Page.
    3. In the Context section, select the application.
    4. In the Apply to field, enter MyOrg-Int-Sample as the integration class.
    5. In the Add to ruleset list, select the ruleset that you created in Task 1.
    6. Click Create and open.
      Creating a single page property
    7. In the Property type section, click change, and then select Single Page.
      Choose single page property
    8. In the Page definition field, enter the MyOrg-Data-Sample data class that you created in Task 3.
      Configuring a Single Page property
    9. In the upper-right corner, click Save.
      Caution: If the JSON structure coming into your REST service is not flat and contains nested structures, you must create multiple integration classes with corresponding page or page list properties in your top-most integration class, so that when you look at the structure of your clipboard page and properties inside the integration class, it matches the structure of the JSON. For example:

      {
      "CustomerID" : "12345",
      "FirstName" : "John",
      "LastName" : "Doe",
      "AddressDetails" :
      [
      {"AddressLine1" : "30 Milk St",
      "City" : "Boston",
      "State" : "MA",
      "Country" : "US"}
      ],
      "CommunicationDetails":
      [
      { "HomePhoneNumber" : "7812224321",
      "CellphoneNumber" : "7810807654",
      "Email" : "[email protected]" }
      ]
      }

      For this JSON, you create 3 integration classes. One for the Customer, one for AddressDetails, and one for CommunicationsDetails. Inside the Customer integration class, you define a page property that has the Applies to class of your AddressDetails integration class and another page property with the Applies to class of your CommunicationDetails integration class.
      The names of the page properties should have the same name as your embedded complex data structure. In this exercise, these are AddressDetails and CommunicationDetails respectively. Each of your integration classes then needs corresponding properties that map one-to-one to the fields defined in the embedded data structure. Because you are flattening everything into your Data class, all the properties in each of these integration classes must be flattened into your data class.

5 Create the service

  1. In the header of Dev Studio, click Create > Integration-Resources > Service Package, to create a service package.
    1. On the Create Service Package page, in the Service Package short description field, enter Sample Service to describe the purpose of your service package.
    2. In the Service Package Name field, specify Sample as the name of your service package.
    3. Click Create and open.
      Creating a new service package
  2. On the Edit Service Package page, on the Context tab, configure the following settings:
    1. In the Processing mode list, select Stateless.
    2. In the Service access group list, enter or select PegaNBAM:Agents.
    3. Clear the Requires authentication checkbox.
    4. In the header of the rule form, click [Edit] to update the Associated RuleSet to the MyOrgInt rule set that you created in Task 1, step 6, and then click OK.
    5. In the upper-right corner, click Save.
      Configuring the service package
      Caution: Customers using this integration service in production will need to enable authentication and set up either Basic authentication or OAuth 2.0 authentication.
  1. In the header of Dev Studio, click Create > Integration-Services > Service REST to create a new REST service.
  2. In the Service REST Record Configuration section, configure the following settings:
    1. In the Service name field, enter SampleService as a label for the Service REST rule.
    2. In the Service package name list, enter or select the Sample service package that you created in Task 5, step 2.
    3. In the Service version field, enter v1.
    4. To the right of the URI Template field, click Build URI to create a new URI template.
      Creating the Service REST rule
      Tip: You use Build URI to map a resource URI to a service REST rule. Use a URI template to define multiple URIs with similar structures. Templates contain a path and a query.
    5. In the Build URI Template window, click + Add.
    6. In the URI component column, enter Example as the name of the URI component.
    7. In the URI component type list, select Literal.
      Tip: Literal: A literal value does not change. For example, if you are configuring a service endpoint URL to fetch the next stage of a case, the literal value could be /cases.
      Variable: A variable value can change depending on the information that the service is fetching. For example, for a service endpoint that is fetching the next stage of a case, {caseID} is a variable value. The case ID can change based on the case for which you are fetching the next stage.
    8. Click Submit.
      Building a new URI component
    9. Click Create and open.
      Creating the Service REST with a URI
  1. On the Edit Service REST rule form, on the Service tab, configure the following settings:
    1. In the Resource properties section, in the Resource list, enter or select MyOrg-Int-Sample, the integration class that you created in Task 4, step 2.
    2. On the Service tab, select the Enable checkbox to enable the Lightweight clipboard mode.
      Configuring Service REST rule
  2. On the Methods tab, configure the following settings:
    1. Expand the POST section to define a service activity to run when the POST method is called.
    2. In the Implementation field, enter SampleServiceActivity as the name for the service activity, and then click the target icon.
      Configuring Method parameters
  3. In the upper-right corner, click Create and open to create the new service activity.
    Creating SampleServiceActivity activity
  4. On the Edit Activity rule form, configure the following settings:
    1. On the Pages & Classes tab, add .SamplePage in the Page name field, and MyOrg-Data-Sample in the Class field, which you defined in Task 3, step 2.
      Adding a new Page to service activity
      Tip: If the service request JSON is not flat, flatten all the data onto the page that you defined above in Task 5, step 8.a by copying the data from the embedded structures onto that page.
    2. On the Steps tab, in the Method list, enter or select DataSet-Execute.
    3. In the Step page list , enter or select the page .SamplePage, that you defined on the Pages & Classes tab.
    4. Expand the Method field to display its properties.
    5. In the Method Parameters section, in the Data set list, enter Sample, the data set that you defined in Task 3, step 7.
    6. In the Operation list, select Save.
    7. Select Insert new and overwrite existing records.
      Configuring service activity
    8. In the upper-right corner, click Save.
    9. In the upper-right corner, click Close to return to the Service REST rule.
  1. On the Methods tab, in the Message data section, configure the following settings:
    1. In the Map to list, select JSON.
    2. In the Map to key field, enter or select the .SamplePage page that you created as part of Task 4, step 5.
    3. In the Mapping method list, select Use fast processing.
      Updating mappings of the REST service
    4. In the upper-right corner, click Save.

6 Mark properties relevant for decisioning

  1. In the header of Dev Studio, click Configure > Application > Inventory > Relevant Records to mark your properties as relevant for decisioning.
    Adding new relevant records in DEV studio
  2. On the Application: Inventory landing page, in the Class name field, enter the MyOrg-Data-Sample data class that you created in Task 3, step 2.
    1. Select the Show inherited relevant records for the class checkbox.
    2. For all properties or When rules that are listed that have a different Applies to class than the data class created in Task 3, step 2, click the More icon at the end of the row, and then select Mark inactive for the current class.
      Marking properties as inactive
      Tip: Click Add records to add new relevant records for properties that are not marked as relevant.
      To add a new relevant record:
      1. In the Type field, select Property,
      2. In the Record name field, enter the properties in your data class.
      3. In the Associate categories field, enter Eligibility, then enter Applicability.
      4. Click Submit.
    3. For all properties defined in the Data class, click the More icon at the end of their rows, select Associate to categories, and then select Eligibility and Applicability.
      Associating categories with relevant records
    4. Click OK.
      Caution: Review all the relevant records and ensure that you include all the required properties and do not have any properties or when rules that should not be marked relevant. If there are any, mark them as inactive.
    5. In the upper-right corner, click Close.

7 Test the service

Before packaging the created artifacts and making the package available to others, you must unit test the configuration.

  1. Open the Service REST rule that you created in Task 5, step 5, to display the Service endpoint URL.
    Locating Service endpoint for the service
    Caution: In the Service endpoint URL, update http to https when making the REST call.
  1. Use an API testing tool, such as Postman, to invoke the service with a JSON request.
    1. Choose the POST method.
    2. Enter the Service URL: https://env.XXXXXX.pegaenablement.com/prweb/api/Sample/v1/Example.
    3. Enter the JSON payload:
      {
      "CustomerID":"12",
      "SampleInteger":3,
      "SampleDecimal":2.5
      }
    4. Send the request.
      Making a new service call from Postman
    5. Confirm that you receive a valid response. For example, 200 OK.
  1. Open the Data set rule that you created in Task 3, step 7, to confirm that the record sent via the service call is stored in the database table.
    1. Click Action > Run to browse the data set.
      Validating records generated by service call
    2. In the Run Data Set window, in the Operation list, select Browse and then click Run.
      Browsing data set to see records in the database
    3. Confirm that the record is retrieved from the database table.
      Browsing through database records
    4. Optional: You can also directly query the database table from CloudBeaver.
      Confirming database records from Cloud Beaver

8 Package the artifacts

  1. In the header of Dev Studio, click Configure > Application > Components to create a new component.
  2. In the upper-right corner, click New component.
  3. On the Create Component rule form, configure the following settings:
    1. In the Label field, enter Sample Component as the name for your component ruleset.
    2. In the Version field, enter 01.01.01 to distinguish this version of the component from previous versions.
    3. Click Create and open.
      Creating a new Application component
  4. On the Edit Application: Component: rule form, configure the following settings:
    1. In the Short description field, enter Sample Component as a description for the component.
    2. In the Publisher field, enter MyOrg as the organization name.
    3. In the header of the rule form, click [Edit] to update the Associated RuleSet to the MyOrgInt rule set that you created in Task 1, step 6, and then click OK.
  5. In the Component rulesets section, configure the following settings:
    1. Remove the default ruleset: SampleComponent_20220624T125609882:01-01-01
    2. Click + Add ruleset.
    3. Add the MyOrgInt:01-01-01 ruleset that you created in Task 1, step 6 to the component.
      Adding the MyOrgInt01-01-01 ruleset
  6. In the Prerequisites section, click + Add application to add a prerequisite.
    1. In the Application field, enter or select PegaMarketing_FW.
    2. In the Version field, enter or select 8.
      Defining the prerequisites
      Note: If necessary, you can now add any other required prerequisites for the component.
    3. In the upper-right corner, click Save.
      Caution: Components can only package versioned rules. This means that non versioned data instances such as relevant records, categories and service packages are not packaged. These rules are included through a product rule after packaging the component.
  1. On the Definition tab, select the Locked checkbox.
    Locking the defined component
    1. Enter and confirm the password.
      Caution: You will need this password to unlock the component.
    2. Click Submit.
    3. In the Package section, click Package Component.
      The system creates a zip file.
    4. Click Download to download the zip file and check that the component has been correctly packaged.
      Downloading component artifacts
  1. In the header of Dev Studio, click Create > SysAdmin > Product to create a new product rule.
    1. In the Label field, enter Sample Product Rule as a short description.
    2. In the Product Version field, enter 01.01.01 as the version.
    3. In the Add to ruleset list, select CDH.
      Creating a new product rule
      Caution: Save this product rule into any ruleset that has visibility of the ruleset that you created in Task 1, but not in that specific ruleset itself.
  1. On the Edit Product rule form, configure the following settings:
    1. In the Applications and Components to include section, in the Name field, add the SampleComponent_XXXXXX component that you created in Task 8, step 3.
    2. In the Version field, enter 01.01.01.
      Adding the sample component to product
  2. In the Class instances to include section, include the relevant records instances:
    1. In the Name column, enter or select Data-Tag-RelevantRecord.
    2. In the Report Definition Filter column, enter FilterDataTagRR and then click the target icon.
      Adding DataTagRelevant instances to product rule
    3. On the Create Report Definition tab, in the upper-right corner, click Create and open.
      Creating the filter rule for relevant records
    4. In the Edit columns section, in the Column source column, enter or select .pxContextClass.
    5. In the Edit filters section, in the Column source column, enter or select .pxContextClass.
    6. In the Edit filters section, in the Value column, enter or select the MyOrg-Data-Sample data class that you created in Task 3, step 2.
    7. In the upper-right corner, click Save and then click the Close icon to return to the Product rule configuration form.
      Defining the columns for relevant records
  3. In the Class instances to include section, include the linked association instances:
    1. Click the + icon to add a new row.
    2. In the Name column, enter or select Link-Association-RRCategories.
    3. In the Report Definition Filter column, enter FilterLinkCategories and then click the target icon.
      Adding LinkAssociation instances to product rule
    4. On the Create Report Definition tab, in the upper-right corner, click Create and open.
      Creating the filter rule for linked associations
    5. In the Edit columns section, in the Column source column, enter or select .pxLinkedRefFrom.
    6. In the Edit filters section, in the Column source column, enter or select .pxLinkedRefFrom.
    7. In the Edit filters section, in the Relationship list, select Starts with.
    8. In the Edit filters section, in the Value column, using capital letters enter or select the MYORG-DATA-SAMPLE data class that you created in Task 3, step 2.
    9. In the upper-right corner, click Save and then click the Close icon to return to the Product rule configuration form.
      Defining the columns for linked associations
  4. In the Individual instances to include section, add the service package that you created in Task 5, step 1.
    1. In the Select a class and press 'Query' field, enter or select Data-Admin-ServicePackage and then click Query.
      Adding the service package to product rule
    2. In the Individual Instances To Include window, select Sample as the service package and then click Submit.
      Adding the servicepackage to product rule
  5. In the Individual instances to include section, add the database admin table that you created in Task 2, step 6.
    1. In the Select a class and press 'Query' field, enter or select Data-Admin-DB-Table and then click Query.
    2. In the Individual Instances To Include window, select MYORG-DATA-SAMPLE as the database table record, and then click Submit.
      Adding the database table to product rule
      Tip: To add individual instances, you can also manually provide the pzInsKey of the rules in the Key column and a label in the Label column. To find the pzInsKey:

      1.Open the rules that you want to add to the product rule.
      2. Click Actions > View XML on the rule form.
      3. Locate the pzInskey value inside the XML.
  1. In the File details section, enter a Short description for the product rule, in this case SampleProduct.
  2. In the upper-right corner, click Save.
  3. In the File details section, click Create product file.
  4. In the Create Product File window, enter SampleProduct as the name for the file, and then click OK.
    Naming the product file
  5. In the pop-up window, click the link to download the file locally.
    Downloading product rule


If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice